package hy.beans;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
@Component
@Data
//@ConfigurationProperties(prefix = "person")
//@PropertySource("classpath:person.properties")
public class Person {
    @Value("${hello.name}")
    String name;
    Integer age;
    Date birth;
    boolean married;
    HashMap maps;
    List lists;
}
